package com.hxzy.dto.system;

import com.hxzy.common.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 角色查询条件
 */
@Getter
@Setter
@ApiModel(value = "角色查询参数")
public class SysRoleSearchDTO extends PageDTO {
    
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    
    @ApiModelProperty(value = "权限标识")
    private String roleKey;
    
    @ApiModelProperty(value = "状态 0=正常,1=停用")
    private String status;
    
    @ApiModelProperty(value = "创建开始时间，格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    
    @ApiModelProperty(value = "创建结束时间，格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
